﻿
using System;

namespace IScheduler.Core.Services
{
    public class UtilServiceSupport : IUtilService
    {
        /// <summary>
        /// Generate new Session Guid
        /// </summary>
        /// <returns>Return new guid.</returns>
        public string GenerateSessionGuid()
        {
            return System.Guid.NewGuid().ToString();
        }

        
    	/// <summary>
    	/// Compare two dates
    	/// </summary>
    	/// <param name="dayA"></param>
    	/// <param name="dayB"></param>
    	/// <returns></returns>
		public bool CompareTwoDates(DateTime dayA, DateTime dayB)
		{
			  if (dayA.Year  == dayB.Year  && 
			      dayA.Month == dayB.Month &&
			      dayA.Day   == dayB.Day)
				{
					return true;		
				}
			return false;				
		}
    }
}
